package com.tdly.buduizhong.base;

import android.app.Application;
import android.os.Environment;

public class BaseApplication extends Application {
    private static BaseApplication instance;
    static String Save_RootFile = "bdz";
    public static final String CACHE_IMG_TEMP_PATH = Environment.getExternalStorageDirectory().getAbsolutePath() + "/" + Save_RootFile + "/cache/temp/";

    @Override
    public void onCreate()
    {
        super.onCreate();

        if (instance == null)
        {
            instance = this;
        }
    }

    public static BaseApplication getInstance()
    {
        if (instance == null)
        {
            instance = new BaseApplication();
        }
        return instance;
    }

}
